import { CoolController, BaseController } from '@cool-midway/core';
import { Body, Inject, Post, Get, Query } from '@midwayjs/core';
import { AnchorInfoEntity } from '../../entity/info';
import { AnchorInfoTypeService } from '../../service/infoType';

/**
 * anchor模块-主播信息
 */
@CoolController({
  prefix: "/apid/anchor",
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: AnchorInfoEntity,
  service: AnchorInfoTypeService,
  pageQueryOp: {
    keyWordLikeFields: ['anchorName', 'name', 'anchor'],
    fieldEq: ['status', 'permission', 'category'],
  }
})
export class AdminAnchorInfoController extends BaseController {
  @Inject()
  anchorInfoService: AnchorInfoTypeService;

}
